import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { clueComponent } from './clue.component';
import { PreviewdocumentComponent } from './previewdocument/previewdocument.component';
import { AddclueComponent } from './addclue/addclue.component';
import { CluedetailComponent } from './cluedetail/cluedetail.component';
import { DocumentComponent } from './document/document.component';
import {EditclueComponent} from './editclue/editclue.component'
const routes: Routes = [
  { 
    path:'',  
    component:clueComponent
  },
  {
    path:'previewdocument/:id',
    component:PreviewdocumentComponent,
    data:{title:'线索预览',breadcrumb:'preview'}
  }
  ,
  {
    path:'document',
    component:DocumentComponent,
    data:{title:'文档预览',breadcrumb:'document'}
  }
  ,
  {
    path:'addclue',
    component:AddclueComponent,
    data:{title:'新增线索',breadcrumb:'addclue'}
  },
  {
    path:'cluedetail/:id',
    component:CluedetailComponent,
    data:{title:'线索详情',breadcrumb:'cluedetail'}
  }
  ,
  {
    path:'editclue/:id',
    component:EditclueComponent,
    data:{title:'修改线索',breadcrumb:'editclue'}
  }

]

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class clueRoutingModule { }
